import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/register_user_entity.g.dart';

@JsonSerializable()
class UpdatePasswordByUsernameEntity {

  UpdatePasswordByUsernameEntity({this.username,this.oldPassword,this.newPassword});

  factory UpdatePasswordByUsernameEntity.fromJson(Map<String, dynamic> json) => $UpdatePasswordByUsernameEntityFromJson(json);

  Map<String, dynamic> toJson() => $UpdatePasswordByUsernameEntityToJson(this);

  @JSONField(name: 'username')
  String? username;
  @JSONField(name: 'oldPassword')
  String? oldPassword;
  @JSONField(name: 'newPassword')
  String? newPassword;
}

@JsonSerializable()
class RegisterUserEntity {

  RegisterUserEntity({this.mobile,this.code,this.shareCode,this.password});

  factory RegisterUserEntity.fromJson(Map<String, dynamic> json) => $RegisterUserEntityFromJson(json);

  Map<String, dynamic> toJson() => $RegisterUserEntityToJson(this);

  @JSONField(name: 'mobile')
  String? mobile;
  @JSONField(name: 'code')
  String? code;
  @JSONField(name: 'shareCode')
  String? shareCode;
  @JSONField(name: 'password')
  String? password;
}

@JsonSerializable()
class UserPerfectEntity {

  UserPerfectEntity({this.phone,this.avatar,this.nickname});

  factory UserPerfectEntity.fromJson(Map<String, dynamic> json) => $UserPerfectEntityFromJson(json);

  Map<String, dynamic> toJson() => $UserPerfectEntityToJson(this);

  @JSONField(name: 'phone')
  String? phone;
  @JSONField(name: 'avatar')
  String? avatar;
  @JSONField(name: 'nickname')
  String? nickname;
}